<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>

<body background="../images/Blue_Background.png">
<%
     int maThuongHieu;
            if (request.getParameter("maThuongHieu") != null) {
                maThuongHieu = Integer.parseInt(request.getParameter("maThuongHieu"));
            } else {
                maThuongHieu = 1;
            }
            String timKiem = request.getParameter("timKiem");
            if(timKiem!=null){
                maThuongHieu = SanPhamDAO.layThongTinSanPham(request.getParameter("tenSanPham")).getThuongHieu().getMaThuongHieu();
            }
            ThuongHieu ThuongHieu = ThuongHieuDAO.layThongTinThuongHieu(maThuongHieu);
            int soLuongSanPhamTrenTrang = 2;
            if (request.getParameter("soLuongSanPhamTrenTrang") != null) {
               soLuongSanPhamTrenTrang = Integer.parseInt(request.getParameter("soLuongSanPhamTrenTrang"));
            }
            int trang = 1;
            if (request.getParameter("trang") != null) {
                trang = Integer.parseInt(request.getParameter("trang"));
            }
     %>
<table width="1034" height="455" align="center" border="1" bordercolor="#FFFFFF">
  <tr align="center">
    <td colspan="5" valign="middle"><img src="../images/BannerShoes.gif" width="1024" height="247"/></td>
  </tr>
  <tr>
    <td width="200" align="center"><a href="../TrangChu"><img src="../images/button-Trangchu.gif" width="179" height="48"/></a></td>
    <td width="200" align="center"><a href="../TrangDangKy"><img src="../images/button-Nam.gif" width="179" height="48"/></a></td>
    <td width="200" align="center"><a href="../TrangChu"><img src="../images/button-Nu.gif" width="179" height="48"/></a></td>
    <td width="200" align="center"><a href="../TrangChu"><img src="../images/button-Treem.gif" width="179" height="48"/></a></td>
    <td width="200" align="center"><a href="../TrangChu"><img src="../images/button-Gioithieu.gif" width="179" height="48"/></a></td>
  </tr>
  <tr align="center">
    <td colspan="5">
    <p align="right"><font color="#0066FF"><strong>Tìm kiếm theo:</strong></font>
      <select name="kichCo2" size="1" style="width:15%">
        <option value="Tất cả" selected="selected">--Chọn thương hiệu--</option>
        <option>Guicci</option>
        <option>Puma</option>
      </select>
<select name="kichCo" style="width:15%">
                        <option value="Tất cả" selected="selected">--Chọn loại--</option>
                        <option value="mã danh mục">Tên danh mục</option>
                      </select>
        <select name="kichCo" style="width:15%">
                        <option value="Tất cả" selected="selected">--Chọn kích cỡ--</option>
                        <option value="mã danh mục">Tên danh mục</option>
        </select>
         <select name="kichCo" style="width:15%">
                        <option value="Tất cả" selected="selected">--Chọn giá--</option>
                        <option value="Gia">&lt; 150,000</option>
                        <option>150,000 - 250,000</option>
                        <option>250,000 -500,000</option>
                        <option>&gt; 500,000</option>
</select>
            <input type="submit" value="Tìm kiếm" name="timKiem">           
    </p></td>
  </tr>
  <tr>
    <td height="294" align="center">
    <table width="100%" height="190" cellpadding="5" cellspacing="0" background="../images/background.jpg">
              <tr>
                <td height="30" align="center" background="../images/Bartop.gif"><p><strong><font color="#FFFFFF">THƯƠNG HIỆU</font></strong></p></td>
              </tr>
              <% List<ThuongHieu> list = ThuongHieuDAO.layDanhSach(); %>
               <!--BatDauThuongHieu-->
         <%
                for (int i = 0; i < list.size(); i++) {
                ThuongHieu dm = list.get(i);
                         %>
              <tr>
                <td>               
                 <a href="DanhSachSanPham.jsp?maThuongHieu=<%=dm.getMaThuongHieu()%>"><%=dm.getTenThuongHieu()%></a></td>
              </tr>  
         <%}%>
            </table>
    <table width="100%" background="../images/background.jpg" >
      <tr>
        <td colspan="2" height="30" align="center" background="../images/Bartop.gif"><p><strong><font color="#FFFFFF">LOẠI SẢN PHẨM</font></strong></p></td>
        </tr>
      <tr>
        <td width="51"><img src="../images/kids_dep.gif"/></td>
        <td width="137"><a><font color="#0000FF" >Dép</font></a></td>
      </tr>
      <tr>
        <td width="51"><img src="../images/batavai_Icon.png"/></td>
        <td width="137"><a><font color="#0000FF" >Giầy thể thao</font></a></td>
      </tr>
      <tr>
        <td width="51"><img src="../images/men_daytay.gif"/></td>
        <td width="137"><a><font color="#0000FF">Giầy tây</font></a></td>
      </tr>
      <tr>
        <td width="51"><img src="../images/nu_thoitrang.gif"/></td>
        <td width="137"><font color="#0000FF"><a>Giầy cao gót</a></font></td>
      </tr>
      <tr>
        <td width="51"><img src="../images/men_sandal.gif"/></td>
        <td width="137"><a><font color="#0000FF">Sandals</font></a></td>
      </tr>
      <tr>
        <td width="51"><img src="../images/kids_hai.gif"/></td>
        <td width="137"><font color="#0000FF">Hài</font></td>
      </tr>
    </table></td>
    <td colspan="4" valign="top"><!-- TemplateBeginEditable name="MainContent" -->MainContent<!-- TemplateEndEditable --></td>
  </tr>
  <tr align="center">
    <td colspan="5" background="../images/Bartop.gif">&nbsp;</td>
  </tr>
  <tr align="center">
    <td colspan="5">
      <p align="right"><a><font color="#0000FF"><strong>Đăng nhập &nbsp;&nbsp;  </strong></font></a> <a><font color="#0000FF"><strong>Đăng ký&nbsp;</strong></font></a></p></td>
      </td>
      
  </tr>
  <tr align="center">
    <td colspan="5"><strong>@ 2012 Le Khanh Nhac </strong> <a href="#" target="_blank">Terms &amp; Privacy</a></td>
  </tr>
</table>
</body>
</html>
